﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="PartyScoreDetail.aspx.cs" Inherits="ZHDJ.Web.Portal.Score.PartyScoreDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Resource/js/jquery/jquery.pagination.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".BrandBtn").addClass("BrandBtn-mouseout");
            $(".BrandBtn").hover(
            function () {
                $(this).removeClass().addClass("BrandBtn-mouseover");
            }, function () {
                $(this).removeClass().addClass("BrandBtn-mouseout");
            });
        })
    </script>
    <script type="text/javascript">
        var pageSize = 20;
        $(function () {
            var totalCount = $("#ctl00_ContentPlaceHolder1_hfTotalCount").val();
            var category = $("#ctl00_ContentPlaceHolder1_hdCategory").val();
            var ddlCategoryValue = $("#ctl00_ContentPlaceHolder1_hdddlCategoryValue").val();
            var loginID = $("#ctl00_ContentPlaceHolder1_hdLoginID").val();
            var branchID = $("#ctl00_ContentPlaceHolder1_hdBranchID").val();

            $("#pagination").pagination(totalCount, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 4, //主体页数
                callback: pageselectCallback,
                items_per_page: pageSize, //每页显示1项
                prev_text: " ",
                next_text: " "
            });

            function pageselectCallback(pageIndex, jq) {
                $.get("PartyScoreDetail.aspx", {
                    PageIndex: pageIndex,
                    PageSize: pageSize,
                    Category: category,
                    DDLCategoryValue: $("#ctl00_ContentPlaceHolder1_ddlCategory").val(),
                    LoginID: loginID,
                    BranchID: branchID,
                    r: (new Date()).getTime()
                },
                function (data) {
                    $("#tableContent .tr_b").remove();
                    var header = "<tr class=\"tr_b\">";
                    header += "<th style=\"width: 150px; text-align: center;\"  class=\"th_b\">积分类型</th>";
                    header += "<th style=\"width: 80px; text-align: center;\"  class=\"th_b\">分数</th>";
                    header += "<th style=\"width: 120px; text-align: center;\"  class=\"th_b\">积分获得时间</th>";
                    header += "<th style=\"width: auto; text-align: center;\"  class=\"th_b\">积分来源</th>";
                    header += "</tr>";

                    if (data == null || data == "") {
                        data = "<tr class=\"tr_b\"><td colspan='4' align='center'   class=\"td_b\">此栏目暂无信息</td></tr>";
                    }
                    var $content = $(header + data);
                    $("#tableContent").append($content);
                    //parent.window.frames['PortalPageIframe'].frameElement.style.height = $("body").outerHeight() + 15 + "px";
                }, 'text');
                return false;
            }
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="party-portal-content-title  s_content_k s_content_border">
        <div class="cztable">
            <table border="0" cellpadding="0" cellspacing="0" style="margin: 5px auto; width: 900px; border-bottom: #ccc solid 1px;" class="table_b">
                <tr class="tr_b ">
                    <th style="width: 80px; text-align: right" class="th_b ">积分类别：
                    </th>
                    <td style="width: 160px" class="td_b " colspan="5">
                        <table style="width:100%">
                            <tr>
                                <td><asp:DropDownList runat="server" ID="ddlCategory" Width="150px" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged">
                        </asp:DropDownList></td>
                                <td style="text-align:right"> <asp:Button runat="server" ID="btnExport" class="BrandBtn" Text="导 出" OnClick="btnExport_Click" /></td>
                            </tr>
                        </table>
                        
                       
                    </td>

                </tr>
                <tr class="tr_b ">
                    <th style="width: 80px;" class="th_b ">
                        <asp:Label ID="lbScoreTile" runat="server"></asp:Label>
                    </th>
                    <td style="width: auto;" class="td_b ">
                        <asp:Label ID="lbName" runat="server"></asp:Label>
                    </td>
                    <th style="width: 80px; font-weight: bold;" align="right" class="th_b ">即时总分：
                    </th>
                    <td align="left" style="width: 80px; line-height: 22px; font-weight: bold;" class="td_b ">
                        <asp:Label ID="lbSumScore" runat="server" Text="0" Style="margin: 0px;"></asp:Label>
                    </td>
                    <th style="width: 160px; font-weight: bold;" align="right" class="th_b ">
                        <center>排名积分：</center>
                        <font style="color: red; font-size: 12px; font-weight: lighter;">（排名积分统计截至今日零时并每天汇总更新一次）</font>
                    </th>
                    <td align="left" style="width: 80px; line-height: 22px; font-weight: bold;" class="td_b ">
                        <asp:Label ID="lbOrder" runat="server" Text="0" Style="margin: 0px;"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    <div style="width: 900px; margin: 5px auto; font-weight: bold; line-height: 22px; color: red;">
        <span>注：根据目前网站设计，活动积分的获取流程是：组织管理员发起活动后，活动通知推送到相关党员的个人待办，党员通过网站、手机客户端可报名确认，但此阶段并不获得积分。活动结束后，组织管理员确认实际参加人员且完成相关活动记录，党组织和实际参加党员的相应活动积分计入组织管理员完成该操作当天的积分明细，并于次日零时更新总分。
                <br />
            <font style="color: blue;">1、“积分结算时间”是指组织管理员完成实际参加人员确认及活动记录录入的时间；
                2、“活动时间”是指活动发起的时间；
                <br />
                    3、“排名积分”即晋位升级榜当前显示的总分，排名积分统计截至今日零时并每天汇总更新一次。</font>
        </span>
    </div>
         <div class="cztable">
    <table id="tableContent" border="0" cellpadding="0" cellspacing="0" style="margin: 5px auto; width: 900px;" class="table_b">
    </table>
             </div>
    <div class="pagination">
        <div id="pagination"></div>
    </div>
    <asp:HiddenField ID="hfTotalCount" runat="server" Value="10" />
    <asp:HiddenField ID="hdCategory" runat="server" />
    <asp:HiddenField ID="hdddlCategoryValue" runat="server" />
    <asp:HiddenField ID="hdLoginID" runat="server" />
    <asp:HiddenField ID="hdBranchID" runat="server" />
    </div>
</asp:Content>
